home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / VOXRAY.ZIP / RGOBJECT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-10  |  669 b   |  25 lines

  1. #ifndef _PWFGOBJ_
  2. #define _PWFGOBJ_
  3. #include <stddef.h>
  4. #include "types.h"
  5. #include "gobjects.h"
  6.  
  7. class RCastGobject : public gobject {
  8.    public:
  9.      RCastGobject(UCHAR imagenum = 1) : gobject(imagenum)
  10.      {};
  11.      PUCHAR Image(UCHAR imagenum = 0){return image[imagenum];};
  12.      USHORT Width() { return width; };
  13.      USHORT Height() { return height; };
  14.      VOID SetImage(PUCHAR imageptr, UCHAR imagenum = 0) {image[imagenum]=imageptr;};
  15.      LONG load(UCHAR imagenum = 0) {
  16.         LONG q=gobject::load(imagenum);
  17.         if (inpcxfile.is_open())
  18.            inpcxfile.close();
  19.         return q;};
  20.      ~RCastGobject() {
  21.      };
  22. };
  23.  
  24. #endif
  25.